from settings import api
from .views import ClothesView, ClothView, ChoicesView, CartView, OrdersView, OrderView, PayView

api.add_resource(ClothView, '/market/cloth/<cloth_id>', 'market_cloth')
api.add_resource(ClothesView, '/market/clothes', 'market_clothes')
api.add_resource(CartView, '/market/cart', 'market_cart')
api.add_resource(OrdersView, '/market/orders', 'market_orders')
api.add_resource(OrderView, '/market/order/<order_id>', 'market_order')
api.add_resource(PayView, '/market/pay/<order_id>', 'market_pay')
api.add_resource(ChoicesView, '/market/choices', 'market_cloth_choice')
